package com.wang.common.file.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "file.oss") //把配置文件中一组属性映射到一个Bean上
public class OSSProperties {
    private String endpoint; //服务器集群所在城市的URL

    private String region; //服务器集群所在的城市

    private String accessKeyId; //阿里云个人用户的AccessKeyId

    private String accessKeySecret; //阿里云个人用户的AccessKeySecret

    private String bucketName; //oss的bucket名

    private String pathPrefix; //bucket中的路径前缀
}